package beans;

import java.util.ArrayList;
import java.util.List;

import javax.ejb.Local;
import entities.*;

@Local
public interface UserManagerLocal {
	public int addUser(User user);

	public User getUser(String email, String passwd);

	public User getUser(Integer id);
	
	public boolean updateUser(User u);

	public List<User> getFriends(Integer id);
	
	public List<User> getAntifriends(Integer id);
	
	public ArrayList<Integer> deleteFriend(Integer []id, int userId);

	public ArrayList<Integer> makeAntifriend(Integer []id, int userId);
	
	public ArrayList<Integer> makeFriend(Integer []id, int userId);

	public ArrayList<Integer> deleteAntifriend(Integer []id, int userId);
	
	public ArrayList<User> getAllUsers();

}
